saveHistoricalData is now running asynchronously