Optimize the table iterator function for executors, need to do that for nestloopjoin and union executor in future