Hi! Good question. Your understanding is correct - currently, the test batching feature gives you a knob to trade off cache granularity for overhead. Pants caching currently works by caching process executions. The advantage of this is that it's straightforward to reason about correctness, because all process inputs are mixed into the cache key, and the process execution is sandboxed.