ip4: perf optimization in the ip4-rewrite node