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