Add a state to register the cache index.