Implementing the caching logic to POIApp