storing aggregated data in memory