Don't modify parameters

It's bad form.
Maintain the last good ticket in the session state

In case we go down for long enough, have another path for session restore for
active users. If you're inactive and we're down for too long, I think there's
not much we can do.
Pass principal names to MySQL as buffers too

Still don't know how that thing's unicode handling works.