Thanks a lot but it didn't help. I had facebook, unninstalled it and it still it takes ages to start.. Are there something like android logs where I can find out which app is causing it?
I have read many forums but nothing helped. I don't count downgrading android as a solution.
It's copy of this:
https://forums.androidcentral.com/moto-x-2013/582575-android-starting-optimizing-app-x-xxx-restarts-phone-5-1-verizon.html
Thanks