Although in this case we have an engineer who was all three of employer, shareholder and employee....
And you're wrong about "minimize costs" per se. The employer has a obligation to maximize shareholder returns, for which a simplistic application of the "minimize costs" principle is seldom a solution.