Managing PKCS #11 cryptographic keys