Avoid out-of-order indexing race conditions