Removed obsolete legacy code
Added local caching of data for API calls with configurable settings.