Optimized MapIndex