optimize the usage on app startup