Allocating memory for indices only once, in Mutation