Issue #1404 new write cache was implemented (without tests).