If your company does last long, and grows enormously, you are optimizing for the long term.
being a public company and having shareholders more or less requires you to increase stock price at the expense of almost anything else.
investors do not care if a company goes under, provided they get a handsome return on their investment beforehand.
If your company does last long, and grows enormously, you are optimizing for the long term.