Separate IO to a different thread