Caching for debugModeEnabled()