The problem with that thinking is that the owners have to pay a certain percentage of the cap each year. So contracts tend to increase the same amount as the salary cap.
That leads to, paying less for player A but more for player B who signed his contract this year and not 2 years ago.