This is needed now that index data may be stored outside of the cache directory. PiperOrigin-RevId: 237051112