A bit of cleanup for the SSLStage.

That code was pretty bad. I'm a bit ashamed of myself.
Clean up the SSL stage some more