Hundreds of prisoners are due to be released from jail on Thursday as part of measures to deal with overcrowding