When Stock Buybacks Are Not a Waste of Money