Significantly improved performance of updateAppsInfo function in apps model.