Try using rails.cache.