Perf: cache nulls for classes with no ShadowConfig.
Remove some debug output.