Buying may not always be cheaper. If existing locks are very good brand (meaning you don't see them in Lowes nor Depot), re-keying is also doable at the expense of time.
In general, re-keying is cheaper.