Whenever an official or other officer or a clerk or employee of any town, city or borough, or any of their agencies, is the repository or custodian of any funds in which the state has an interest, and such officer, official, clerk or employee is bonded for good and faithful performance, such bond shall include and run to the state to the extent of such interest and any additional premium therefor shall be paid by such town, city or borough.