cacheOrCompute

The pre-computed cache for the document if it exists; otherwise, computes and updates it invoking setActive.