Move birthday optimization out of ScanForWalletTransactions