Before we start micro-optimzing this stuff I suspect we might want to just split the submit_cmd handlers so that we have a fast path and the rest. We've grown a few too many arguments by now..