James Reske
Analyst · Raymond James
Thanks, Mike. Before I break down the margin and other elements of the income statement, I'd like to highlight a few balance sheet items. Regulatory capital ratio has improved due to strong retained earnings and the absence of any buyback activity in the quarter, combined with modest balance sheet expansion. Strong deposit growth, coupled with modest loan growth, improved our liquidity as well. Not only did it bring down the loan-to-deposit ratio, as Mike mentioned, but it also left us with $223 million of excess cash at the end of the quarter.
The strength of our internal capital generation and our improved liquidity position has allowed us to announce 2 actions with first quarter earnings. First, a regular increase in the dividend of [ $0.02 ] per year in keeping with prior years and our long-term goal of smooth and steady increases in the dividend for our shareholders.
And secondly, the redemption of $50 million of our $100 million in outstanding subordinated debentures on June 1. The timing of this redemption was right for several reasons. First, the sub debt would have lost another 20% of its Tier 2 capital treatment on June 1 and refinancing options [indiscernible] bit of expenses. Second, the consolidated total risk-based capital ratio improved organically by 34 basis points in the quarter, 34 basis points. That mostly offsets the 44 basis point impact of [indiscernible] sub debt in the second quarter. And we have modeled further organic growth in our cap ratios in the second quarter as well. Third, the excess cash at quarter end provided the liquidity with which to fund the repurchase without taking on any additional borrowings.
Finally, the coupon of this tranche of the sub debt was currently about 7.45%, and we're paying it off in funds that are currently sitting at the Fed earning 5.4%. So it's redemption will save the company approximately $1 million in pretax expense per year and improved the net interest margin or NIM by about 1 basis point. Our strong deposit build in the first quarter came at the expense of a net interest margin as our NIM compressed by 13 basis points in the quarter.
We had expected that the yield on earning assets would improve by approximately 10 to 15 basis points matching a 10 to 15 basis point anticipated increase in the cost of funds, producing NIM stability. It didn't turn out that way. Instead, the yield on earning assets only improved by 5 basis points and the cost of funds went up 19 basis points. In the aggregate, we originated new loans at just over 8% in the first quarter, but the old ones that are running off and were in the aggregate about 7%, resulting in relatively modest replacement yields. On top of that, the loan portfolio yield was negatively impacted in the first quarter by the continued effect of received fixed macro swaps that we entered into several years ago.
Fortunately, $25 million of those swaps run off on June 30 of this year, and another $50 million runoff in December. Those who only have a 1 basis point benefit to the NIM in 2024, but a further $250 million runoff in 2025, which we expect to produce a cumulative benefit to the NIM of 8 to 11 basis points, depending on the trajectory of rates.
If rates stay higher the longer, the benefit of the macro swap roll-off will be on the high side of that range. On the liability side, deposit costs increased by 25 basis points as we saw a $233 million decline in low-cost deposit categories, combined with a $283 million increase in the more expensive category. Despite the movements in balances, we saw net gains in consumer households in the quarter.
In fact, our deposit pricing strategies have been effective, not just in retaining our deposits, but we're attracting new dollars to the bank. While the cost of deposits went up 25 basis points, the cost of funds only went up by 19 basis points because we benefited from participation in the Federal Reserve's bank term funding program in the quarter.
We got in a program and borrowed just over $500 million, while the Fed was still pricing the borrowings on the forward curve. So we are grandfathered in so to speak, at 4.76% on those borrowings until next March. We didn't enter the program with the intent to arbitrage the rate. We simply borrow that much because that's what we needed at the time and the Fed's rate was less than the FHLB.
Ordinarily, we would use the excess cash generation from the strong deposit growth we enjoyed in the first quarter to pay off borrowings. But given the rate differential, we prefer to stay in the BTFP program for now, which is why we ended the quarter with $223 million on deposit at the Fed at 5.4%. While it's obviously accretive to income to the tune of about $0.01 a share in 2024, it did have a 3 basis point suppressive effect on the NIM and in the first quarter.
Fee income and noninterest expense are both little changed, but slightly unfavorable to last quarter. back-to-back swap fees were nonexistent as customers have little desire to lock in fixed rates. And interchange was down seasonally compared to the fourth quarter with holiday spending. We were pleased, however, to see mortgage and SBA gain and sale income pick up from last quarter. That was good. The noninterest expense comparison to last quarter was also affected by a tax accrual reversal that benefited the fourth quarter and by higher occupancy expense in the first quarter.
And with that, I'll turn it back over to Mike.