There shall be deducted and withheld from the longevity payable under § 51-287a to each Chief State’s Attorney, deputy chief state’s attorney and state’s attorney who is included in the provisions of § 51-287 a sum equal to five per cent of the longevity payment. The sum deducted and withheld shall be deposited to the State’s Attorneys’ Retirement Fund.