Sometimes engineers are not at fault. They are well aware of technical debt and possible performance mine fields. It's the management that does not properly prioritize performance and scale work because there is no apparent "value" to the customer. Until it's too late.