U.S. financial sector exchange traded funds are gaining momentum, with lenders generating near-record profits over the second quarter, as banks trim costs and raise loan balances.

The financial sector has been slightly outpacing the broader market. The Financial Select Sector SPDR (NYSEArca: XLF) has gained 1.7% over the past week and rose 1.9% over the past month while the Vanguard Financials ETF (NYSEArca: VFH) is up 1.5% over the past week and 1.7% higher over the past month. Meanwhile, the S&P 500 is up 0.7% and 1.3% over the past week and month, respectively. Banks make up 46.3% of VFH and 36.6% of XLF [Financial Sector ETFs Picking Up the Pace]

Alternatively, for greater bank exposure, the iShares U.S. Financial Services ETF (NYSEArca: IYG) includes a 55.6% weight toward banks and 43.8% toward financial services. The SPDR S&P Bank ETF (NYSEArca: KBE) solely focuses on banks. Over the past week, IYG is up 2.0% and KBE gained 1.6%.

According to the Federal Deposit Insurance Corp., banks’ loan and lease balances expanded by $178.5 billion to $8.1 trillion, a 2.3% rise over the previous quarter and the biggest quarterly gain since the last quarter of 2007. [Financial ETFs Could Bank on Rising Profits]

“Net income was up, asset quality improved, loan balances grew at their fastest pace since 2007, and loan growth was broad-based,” Gruenberg said in a Bloomberg article, adding that challenges facing banks include pressure from narrow net interest margins and “increasing higher-risk loans to leveraged commercial borrowers.”

Additionally, the FDIC contributed to the improved earnings in the banking sector to lower expenses. Specifically, financial results for the second quarter came in at a combined net income of $40.2 billion, or 5.3% more than the same period year-over-year.