ActiveRecord caching extension