Office space, storage rooms and even laundry rooms in jails will be converted into cells with the aim of adding 14,000 spaces by 2031.