I don't buy the 'James Bond' argument that you might resist torture until you can escape, be released somehow, or the torturers find better things to do. That might apply to .001% of cases, maybe.
I didn't imply you would be a magical Houdini who can escape any jail given enough time. But prisoner exchanges happen all times in most wars, according to game theory this is often a rationally preferred decision for both parties. Admittedly, I have never been tortured and don't have a clue what goes on in government torture camps, but I do know prisoner swaps occur all the time. Just google prisoner swap or prisoner exchange.
I don't know about you, but I intend to crack the second I meet with a rubber hose situation, and give them my least sensitive password, in the hopes that they accept that, and don't torture me at all. I doubt I'll have to fake the fear.