Implement key retrieval in encryption service