API: Expose locate logic to locate/batch through filter_before, filter_after.
PERF: Add simple benchmarks file.