Use object_cacheable gem.