delete cache object. Shows up as memleak in valgrind