Memory cache size bugfix for deletes