Failsafe index and mapping creation