Extract the sparse file creation into a separate methods that does not use streams, thus working around races triggered by the request object emitting the 'end' event early on