[ruby-core:118569] [Ruby master Misc#20630] Potential optimizations for `NODE_CONST` compilation