South Africa is spending R1,5billion a year to keep more than 50 000 awaiting-trial detainees behind bars.