Even if ZOS uses their own dedicated hardware instead of outsourcing to a service like AWS, hardware is relatively cheap and easy. I seriously doubt their hardware is the issue. Software optimization, however, is difficult, time consuming and can be seriously hampered by tiny calculations.