writebehind cache with shutdown hook (extract to other module WIP)