Checkpoint compute_cached code.