Instead of endlessly optimizing code after it has been written we could treat the code as a design exercise. Great design embraces constraint.
So we need to think about what sort of comfortable requirements we might have to constrain our app. Often we hear customers won't wait longer than 2 seconds. Most people are mobile these days. Lets do some maths!
Note! This does not consider how long the device will take to parse, then execute, the payload. This only considers the network threshold. Normally we hear about time to the first byte but our customer actually cares about a running app not an app that just began to download.