Issue #387: Only run squash once for multiple outputs