Do not run this code during upgrade and if ost is booting up
Optimize
Do not run this during bootup