Liquidity is essential to the Company's business. Liquidity risk is the risk that the Company will not be able to meet its obligations, including financial commitments, as they come due and is inherent in the Company's operations. An inability to raise funds through deposits, borrowings, the sale of loans or investment securities, and from other sources could have a substantial negative effect on the Company's liquidity.
The Company's most important source of funds consists of the Company's client deposits, which can decrease for a variety of reasons, including when clients perceive alternative investments, such as bonds, treasuries or stocks, as providing a better risk/return tradeoff. Total deposits increased in 2023, however, clients demanded higher interest rates on deposit accounts to compete with higher yielding short-term investments available. The Company's future growth will largely depend on its ability to maintain and grow a strong deposit base and the Company's ability to retain its largest retirement and benefit services and wealth management clients, many of whom are also depositors. If clients, including the Company's retirement and benefit services and wealth management clients, move money out of bank deposits and into other investments, the Company could lose a relatively low-cost source of funds, which would require the Company to seek other funding alternatives, including increasing the Company's dependence on wholesale funding sources, in order to continue to grow, thereby increasing the Company's funding costs and reducing net interest income and net income.
Additionally, uninsured deposits have historically been viewed by the FDIC as less stable than insured deposits. According to statements made by the FDIC staff and the leadership of the federal banking agencies, customers with larger uninsured deposit account balances often are small- to mid-sized businesses that rely upon deposit funds for payment of operational expenses and, as a result, are more likely to closely monitor the financial condition and performance of their depository institutions. As a result, in the event of financial distress, uninsured depositors historically have been more likely to withdraw their deposits. If a significant portion of our deposits were to be withdrawn within a short period of time such that additional sources of funding would be required to meet withdrawal demands, the Company may be unable to obtain funding at favorable terms, which may have an adverse effect on our net interest margin. Moreover, obtaining adequate funding to meet our deposit obligations may be more challenging during periods of higher prevailing interest rates, such as the present period. Our ability to attract depositors during a time of actual or perceived distress or instability in the marketplace may be limited. Further, interest rates paid for borrowings generally exceed the interest rates paid on deposits. This spread may be exacerbated by higher prevailing interest rates. In addition, because our available for sale securities lose value when interest rates rise, after-tax proceeds resulting from the sale of such assets may be diminished during periods when interest rates are elevated. Under such circumstances, we may be required to access funding from sources such as the Federal Reserve's discount window in order to manage our liquidity risk.
The Company also accesses collateralized public funds, which are bank deposits of state and local municipalities. These deposits are required to be secured by certain investment grade securities to ensure repayment, which reduces standby liquidity by restricting the potential liquidity of the pledged collateral. As of December 31, 2023, the Company had pledged $250.0 million of investment securities for this purpose, which represented approximately 31.8% of the Company's total securities portfolio. If the Company is unable to pledge sufficient qualifying collateral to secure public funding, it may lose access to this source of liquidity that the Company has historically relied upon. In addition, the availability of and fluctuations in these funds depends on the individual municipality's fiscal policies and cash flow needs.
Other primary sources of funds consist of cash from operations, investment security maturities and sales and proceeds from the issuance and sale of the Company's equity and debt securities to investors. Additional liquidity is provided by the ability to borrow from the Federal Reserve and the FHLB. The Federal Reserve established the Bank Term Funding Program, or BTFP, on March 12, 2023, offering qualifying banks loans of up to one year in length collateralized by qualifying assets, including U.S. securities valued at par, to serve as a source of additional liquidity against high-quality securities and reducing an institution's need to quickly sell high-quality securities to meet liquidity needs. The Federal Reserve has announced that it is ending the BTFP and will cease making new loans under this program on March 11, 2024. The Company may also borrow from third-party lenders from time to time. The Company's access to funding sources in amounts adequate to finance or capitalize the Company's activities or on terms that are acceptable to the Company could be impaired by factors that affect the Company directly or the financial services industry or economy in general, such as disruptions in the financial markets or negative views and expectations about the prospects for the financial services industry. Economic conditions and a loss of confidence in financial institutions may increase the Company's cost of funding and limit access to certain customary sources of capital, including inter-bank borrowings, repurchase agreements and borrowings from the discount window of the Federal Reserve. There is also the potential risk that collateral calls with respect to the Company's repurchase agreements could reduce the Company's available liquidity. At December 31, 2023, the Company's borrowed funds decreased to $314.2 million, compared to $378.1 million at December 31, 2022. The balance of borrowed funds as of December 31, 2023 included $200.0 million in FHLB advances and $114.2 million in federal funds purchased. Despite the decrease in borrowings, the Company's cost of funds increased and in 2023, as compared to 2022 as a result of the increased interest rate environment.
Any decline in available funding could adversely impact the Company's ability to continue to implement its strategic plan, including originating loans and investing in securities, or to fulfill obligations such as paying expenses, repaying borrowings or meeting deposit withdrawal demands, any of which could have a material adverse effect on the Company's business, financial condition, results of operations and growth prospects.