Improving OutputPin::write performance.