Atomically replace local index cache
Send index in chunks of 1000 to avoid lengthy blocking
Mostly lock free receive loop