Returns the value stored under key for this call, computing and caching it with compute on first access. Lets the engine resolve each resource's policy at most once per call, however many instances of that resource the write contains.