Pay a little more up front, and it can add up to big savings in the long run.