Use a more memory-efficient data structure for storing events - this will fix issues with missing event data.