Improving CVAR performance in Ruby 3.1

Ruby Internals