This assertion isn't making sure the delete is safe, it's double-checking consistency of singleton_cache; I'd leave it in.