query on long stream limited to eventnumbers

We have a pretty long category stream which we use for inter app communication and we run queries on it to check where data ended up etc.

However this tends to be a brute force read on lots of data Is there anyway to limit it to say the head of the stream

eg

fromStream(hole/2018964/backward/20’)
.when({

Ben