adding simple caching to timeline