Added cache object and utility method to populate cache,