[server][UnifiedDataStore] Improve performance by using a map.