All costs and expenses associated with postconviction prison and nonprison sanctions imposed for felony convictions and time spent in a county jail pursuant to a nonprison sanction imposed for felony convictions shall be the responsibility of and paid by the state of Kansas.
K.S.A. 21-6823