Don't marshal ActiveSupport::Cache::Entry objects twice ยท rails/rails@066919f

When upgrading to Rails 5.2 we're seeing `ActiveSupport::Cache::Entry#compress` and `ActiveSupport::Cache::Entry#should_compress?` as the highest usage of our CPU. At least some part of this is...