Section 77. Premiums on bonds of court officers and deputy sheriffs in attendance on the supreme judicial, appeals or superior court in Suffolk county and on the courts in Bristol, Hampden, Middlesex, Norfolk, and Worcester counties shall be paid by the commonwealth.