Optimizing event fetching on stream