It'll cost you upfront, but may save you money in the long run.