Do table stitching and cache intermediate result locally