so you want to check all the cached queries when we want to delete one of them? it doesn't seem to be very efficient.