Is My Legacy at Risk? Optimizing Stock Buybacks for a Tec...