Added caching and configuration for API timeouts