reduce memory needs for report generation