Cache compressThreshold in constructor