raft: get rid of unnecessary copy on critical path