Any justice of the Supreme Court or judge of one of the courts of appeals or any circuit court judge holding office on or before June 1,1976, who has time of service as a full-time state prosecutor or assistant state prosecutor in any circuit of the state, or who had time of service as an attorney for the State Milk Control Board, shall be entitled to have such time of service, regardless of whether or not such time of service was continuous, treated as time of service in the judicial position he holds on or before June 1, 1976, with the Judicial Retirement System; provided, however, that such time of service does not exceed five years; provided also that such justice or judge shall pay into the Judicial Retirement Fund of Alabama a sum equal to six percent of his then annual salary for each year of such service that he elects to count toward judicial retirement; provided further that such election and payment shall be made to the Secretary-Treasurer of the Employees' Retirement Systems of Alabama within one year from June 1, 1981. Should the records of the Employees' Retirement Systems of Alabama fail to reflect the position held thereunder and for which credit is sought under the provisions of this section, affidavit from one disinterested person that such position was that of a full-time prosecutor or assistant prosecutor of any circuit in this state, or as an attorney for the State Milk Control Board, shall suffice as proof thereof.