Instead of global data store it in an OPENSSL_CTX