Allows to cache the total counts of categories, so that during search which
returns a large number of results (>60% of segment size), the complement set
of matching documents is counted. Useful for queries that visit a large
number of documents, e.g. overview queries.