Again, the indexes should be calculated outside of the `compare` method when the Comparator is being initialized (where the `firstLocationIndex` was calculated), since that happens only once upon preparation of the query. The values are the same for all calls, and to keep the query execution (e.g., the processing of the tuples in the query results) as fast as possible.