Implementation of a cache cleaner as requested in #14