Security Upgrade for API Key Validity