add commit cache (feature #622)

Ok, why not use normal language then. Something like "...store either the paths of the uncommitted nodes, or false for..."