Make a ruby object attribute cacheable