The Department of Corrections shall contract for the purposes set out in Section 47-5-943 for a period of not more than twenty (20) years. The Department of Corrections may include in the contract, as an inflation factor, a three percent (3%) annual increase in the contract price. The state shall retain responsibility for medical care for state offenders to the extent that is required by law.