we should have unit test for this that nobody will make index bigger than `SESSION_STATS` and `SESSION_STATS` is equal to the number of indexes.