Issue #1404  WAL performance improvements.