Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev