[TEST] build index up-front to prevent relocations