ISPN-3704 StateTransfer's PutKeyValueCommand may trigger remote get

Rework the remote get conditions and deal with tx and non-tx caches separately.