If you're small, you get hit by the tax. If you're big enough for creative structuring, you're fine.
It's just as disgusting when you get down to individual tax. Larger companies are for the most part taxed territorially (where they make the money) while individuals are fully (and often in ways that are incompatible with local market practice) liable for US taxes, even if they live outside the US.