Whenever the employees in the classified service of the state merit system receive a cost-of-living increase of a certain percentage or a certain amount, the amount provided for in Section 3 of this Act shall be increased by the same percentage or same amount applicable to such state employees. If the cost-of-living increase received by state employees is in different percentages or different amounts as to certain categories of employees, such amount shall be increased by a percentage or an amount not to exceed the average percentage or average amount of the general increase in salary granted to state employees. Such average percentage increase or average amount increase shall be equal to that received by [the] sheriff of Polk County pursuant to paragraph (2) of subsection (a) of Code Section 15-16-20 of the O.C.G.A. [O.C.G.A. ยง 15-16-20(a)(2)] The periodic changes in the amount provided for in Section 3 of this Act as authorized by this section shall become effective six months following the date that the cost-of-living increases received by state employees become effective.