cache value on access (fixes sticky_locals_spec.rb). thanks @yui-knk!