#2 Add a segmentQueryCacheMaxAmount to allow large query results not to be cached