Corrected API key renewal timing

Renews the API key if not used >= 60 minutes ago