1. You are making a wrong assumption. Torture won't prevent terrorism. Instead, it'll just make the prisoner friends more aggressive and looking for revenge.
2. To me the problem with torture isn't that it's "bad"
Hmmm, have you tried losing an eye? That's should be quite bad.