resetRanges now resets requeueCount
Removed unused indexes
Now splits randomKey values into ranges when finding the next available range