Elon Musk is noted for his premature optimization.
Case in point: both the Gigafactory (vastly overbuilt for the quantity of batteries actually produced) and the Alien Dreadnought (vastly overbuilt for the number of cars Tesla current produces...assuming that Tesla is ever able to get the fancy automation working). Boring Co digging a two-mile tunnel in West LA without bothering to learn how to pour concrete smoothly, or to make the "rails" the proper width, or learning about ventilation, or access points....
Often reverse is true. Trying to optimize system with million lines of code may require serious change in architecture and much harder because of backward compatibility and all the legacy baggage. As many people would describe it, it much harder to fix an airplane that must also continue to stay in the air.
It's not easier to optimize a working system for consumers if "optimization" == "not dying". What will happen is you will deoptimize your brand's safety and find yourself regulated.
Case in point: both the Gigafactory (vastly overbuilt for the quantity of batteries actually produced) and the Alien Dreadnought (vastly overbuilt for the number of cars Tesla current produces...assuming that Tesla is ever able to get the fancy automation working). Boring Co digging a two-mile tunnel in West LA without bothering to learn how to pour concrete smoothly, or to make the "rails" the proper width, or learning about ventilation, or access points....