geohash is a stable encoding algorithm. It should be a one time transformation of data point to a geohash value. Squeezing out absolute performance of the geohash algorithm is not practical use of time and resource.
Or if you prefer, geohash it JIT style, and once it's persisted, you don't run it again thereafter.