Optimize call flow around xt_entry_foreach