diff-delta: allow reusing of the reference buffer index