491e91dd40
~1.3s to ~1.1s time savings by re-using some calculations that will be the same for every event type in the batch TODO: Find a way to make store_state_group_id_for_event_id batch persist in the db which brings it down to about 0.8s