Weird idea, but individuals pay taxes based on their income not on their profits. What would happen if companies would pay taxes after their revenue broken down per country not after their profits? I think the tricking the tax system problem would be solved.