Enhance performance by minimizing _write calls.