Some sequences of insertions could lead to unwanted erasure of cached metadata