Why the application is slow at start up