At March 31, 2022, our Litigation-Related loans, which include commercial loans to law firms and consumer lending to plaintiffs/claimants and attorneys, totaled $395.3 million, or 48.3% of our total loan portfolio, compared to $386.0 million, or 49.2% of our total loan portfolio at December 31, 2021. We remain focused on prudently growing our Litigation-Related loan portfolio.
Securities. Securities available-for-sale decreased $14.2 million, or 9.6%, to $134.2 million at March 31, 2022 from $148.4 million at December 31, 2021, driven by unrealized losses of $8.5 million, paydowns of $7.3 million, and net amortization of $124 thousand, offset by purchases of $1.7 million. Commencing in the first quarter of 2022, we invested a portion of our excess liquidity in held-to-maturity securities, totaling $47.5 million at March 31, 2022.
Funding. Total deposits increased $61.5 million, or 6.0%, to $1.1 billion at March 31, 2022 from $1.0 billion at December 31, 2021. We continue to focus on the acquisition and expansion of core deposit relationships, which we define as all deposits except for certificates of deposit. Core deposits totaled $1.1 billion at March 31, 2022, or 98.2% of total deposits at that date, compared to $1.0 billion or 98.1% of total deposits at December 31, 2021. Demand deposits (noninterest bearing) increased $79.6 million, or 19.4%, to $489.0 million, representing 44.9% of total deposits.
In addition to our core deposits as a source of funding, the Company continues to prudently manage its balance sheet through deposit sweep programs, maintaining off-balance sheet funds totaling $618.0 million at March 31, 2022 which is a $80.5 million, or 15.0%, increase from the December 31, 2021 balance of $537.5 million.
At March 31, 2022, we had the ability to borrow a total of $154.9 million from the Federal Home Loan Bank of New York. We also had an available line of credit with the Federal Reserve Bank of New York discount window of $23.8 million. At March 31, 2022, we also had $67.5 million in aggregate unsecured lines of credit with unaffiliated correspondent banks. No amounts were outstanding on any of the aforementioned lines of credit at March 31, 2022.
Equity. Total stockholders’ equity decreased $350 thousand to $143.4 million at March 31, 2022, from $143.7 million at December 31, 2021, primarily due to other comprehensive losses of $6.2 million, due to the decline in fair value of available-for-sale securities reflective of the recent increases in short-term market interest rates, partially offset by net income of $5.3 million and amortization of share based compensation of $561 thousand.
Asset Quality. Nonperforming assets, totaling $7 thousand, consisted of several nonaccrual consumer loans as of March 31, 2022. As of March 31, 2022, the allowance for loan losses was $9.5 million, or 1.16% of total loans, as compared to $9.1 million, or 1.16% of total loans at December 31, 2021. The stability in the allowance as a percentage of loans is reflective of reduced pandemic related uncertainty. At March 31, 2022, special mention and substandard loans totaled $29.5 million and $3.9 million, respectively.
Average Balance Sheets and Rate/Volume Analysis
The following tables present average balance sheet information, interest income, interest expense and the corresponding average yields earned and rates paid for periods indicated. The average balances are daily averages and, for loans, include both performing and nonperforming balances. Interest income on loans includes the effects of net premium