speed things up by making the writes asynchronous