Cache valid API keys. close #229