Introduce log write buffering