PERF: Defer setting of distributed cache in category. (PR #13279)

See follow up commit for rational.

Follow-up to 8cfe203

GitHub