This was originally done because I wasn't sure I'd be using the pkey_ctx the entire time and I didn't want the RSA ctx to be gc'd before I was done with it.