Lucene Facet calculation performance optimizations