There are a couple of points in `persist_events` where we are doing a query per event in series, which we can replace.