Currently writing the files is still using synchronous file i/o. Given that the whole run method is already using asyncio, it can also be used for the file i/o.