Improving CVAR performance in Ruby 3.1

Caching