performance: cache default named constants

bugz: 25977