Allow indices to be stored in shared memory ready for reduce operation