public key cleanup on private key generation