Cache `nextIndex`