If going to jail where you can get raped, beaten and killed does not work as a deterrent why would something less severe work as a deterrent?
Sometimes I think trying to solve the root cause of crime would be more effective than increasing the punishments.