Implemented First Version of Smart Caching