Index loading is now thread-safe.

The cache key used to be sensitive to the length of the underlying indexes.
This is no longer the case.