Thread safety fix for local asset cache