Improving CVAR performance in Ruby 3.1

Ruby 3.1