Optimize retrieving mono event ids.

1 job for dev-aberti-speed-up in 10 minutes and 38 seconds