Fixed InsertKeyTx to support bulk loading.