Moving the blocking I/O to a dedicated thread