You maximize your income in the NBA by getting someone to overpay you on a long contract. The best strategy is to fool some team into thinking you have more potential than you actually do, not in actually improving.
From a purely financial standpoint, Williams should go to the team that would be most likely to hand him a 4-year, $20m contract on the basis of a couple of months.