Optimize within(distance).