FileFactory is threadsafe