maxEntries property
Live-entry cap across both generations. Dense CAD documents carry ~25-40k distinct small-shape keys per 10-page render; each generation (half this cap) must hold a whole document's working set or its own render rotates its early keys out and every recurrence turns into a full rebuild (measured slower than no cache at all on ly9-far-cad at a 16k cap). Steady state on the heavy corpus is ~40k entries / ~20 MB; the cap is headroom, not expected occupancy.
Implementation
final int maxEntries;