can you add a comment about how fileSystem is threadsafe? Because below you do these in parallel, right?

I get nervous without a clear link to docs claiming this is safe. Digression: it is a shame the type system cannot prove that this is a thread-safe operation. It is totally doable, and imagine how many bugs we could eliminate!