Having MIUI optimization enabled on a MIUI device (for me: Mi Max 2) makes it to take a long time (exactly 10 minutes) for each new app to be installed. Although I have not seen such behavior in the main profile/user, in a Work Profile (i.e. managed profile) with MIUI optimization enabled, each installing process takes exactly 10 minutes.
However after turning off the MIUI optimization (under Developer options), this behavior does not happen. Has anyone notified of this behavior? What is wrong with the MIUI optimization? Can I get rid of this optimization without getting into trouble in other parts of system?