What you're missing is that the write for the step should happen by the master.  That's the point of remote chunking.  I read in the master, process in the slave, and write in the master.  Your example misses the final write.  I'm not arguing that what you have doesn't work, I'm arguing that it's not the intended use case.