Using thread-safe map.