Rename installedAppsHash to uidMap for clarity and consistency