Add limit to number of records stored in memory