Implementing AES client side encryption of privateKeys