This is essentially how the 457 visa works in Australia. It's uncapped but you have to pay a 'market salary rate', which is either the salary of an equivalent worker in the firm, or of an equivalent worker In the industry.
The problem with what you mention about Australia is regression to the mean. 'Market salary rate' means average salary, which is not what a great programmer is worth.