Temporarily save average data to local file if no connection to the backend.