Store encrypted keys in the database