Caching historical data