I might be wrong but I suspect that it's possible to avoid the eager iteration (and related computations) happening in DistanceCollector#setNextReader.