The Future of Prisons???

Let me exaggerate and push your metaphor a bit
What if the offender was drugged or under hypnotic control (winter soldier like) and they were compelled into their heinous crimes by some outside entity
You could use the brain rescrambler to break the hood the entity had
Would you still want them to sit in prison thinking about the crimes they may not be fully aware they committed?
In this scenario.... Bill Cosby should be castrated.