do delete old document only when it exists
working on a memory efficient key map