Simplified custom TLS. Might not work on ICC anymore, I'm not sure (but guess it should).