Here you could do following thing:

```javascript
var write = async ? this._binding.write : this._binding.writeSync;
```

and below
```javascript
write.call(this._binding, ....)
```

This is much better performance-wise.