API Rate limit and caching mechanism