Note: This is experimental and may(!) introduce memory leaks (if it fixes the double deletes a bit too eagerly).