A case for API-level cryptography