The little-known mortgage trick that could save you thousands