Hoist the gmem -> smem copy out of my_DeviceMergeKeysIndices into my_DeviceMerge