Improve loading of chart data