If deemed by the city, town, county, except Worcester county, or other subdivision to be in the best interests of the subdivision and its active and retired employees and their eligible dependents, the respective subdivision may enter into such service type contracts for a period not to exceed five years.