I've encountered this situation a few times in the past and just did so again today. Basically, I'll try to start up my phone, and at startup I'll get a message saying "optimizing apps" and then something like "1 out of 180." It does so, but takes several minutes. The problem is, like most people, I use this phone in large part for business, and if this ever happened at the wrong time it could cause huge problems for me.
Basically, how do I set it so that I have some control over when this happens, as opposed to it essentially choosing for me at seemingly random times? Also, if it DOES happen when I don't want it to, is there an emergency way to get out of it for now and still get the optimizations later? Thank you.