As the stock market continues in its ninth year of an impressive bull run, mutual funds have enjoyed stellar gains. In 2017, U.S. diversified stock mutual funds averaged a gain of 18.26%, just off the heels of the S&P 500's 22% gain last year.

While last year was good for mutual funds, 2018 looks to be even better. According to Bank of America Merrill Lynch analysts, 57% of large cap fund managers are outperforming their benchmarks year-to-date. That's the highest first quarter hit rate since 2009, analysts found.

With mutual funds performing with gusto recently, it's worth looking into what stocks in particular they've invested heavily in. With the stock market on shaky ground this week, these stocks could be wise choices for a retirement investor looking to cushion his or her portfolio with winning names.

After all, if they work for the top mutual funds, shouldn't they work for your retirement account?

Among some of the top-performing mutual funds last year, there was a decidedly tech-heavy skew. The top three holdings in the Schwab S&P 500 Index (SWPPX) are Apple Inc. (AAPL) making up 3.85% of the portfolio, Microsoft Corp. (MSFT) with 3.09% and Amazon.com Inc. (AMZN) with 2.48%. In the last five years, that mutual fund has returned 15.6% on an annualized basis, making it the best building-block fund in its group.

When it comes to diversified one-decision funds, the Vanguard Wellington (VWELX) is among the best. It returned 10.8% annualized over the last five years. The top holdings in that fund are Microsoft at 2.67%, JPMorgan Chase & Co. (JPM) at 2.22% and Intel Corp. (INTC) at 2.13%.

A close second in the diversified one-decision group is the Fidelity Balanced (FBALX) fund, which has returned 10.7% annualized in the last five years. The top holdings in that fund are popular: Microsoft at 2.1% and Amazon at 1.91%.

For custom funds, one of the best is the big-time T. Rowe Price Blue Chip Growth (TRBCX) fund, which has returned 18.9% annualized in the last five years. There's more of the same for this top performer, as its biggest holdings are Amazon at a massive 10.12% of the portfolio, Facebook Inc. (FB) at 4.53% and Microsoft at 4.28%.

Bottom line? There's nothing wrong with some tech exposure in this market. While stocks in that space have struggled some of late, they remain likely long-term winners. Remember, the Technology Select Sector SPDR ETF (XLK) has rallied 22.6% in the last 12 months.

Apple, Microsoft, Amazon JPMorgan and Facebook are holdings in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio . Want to be alerted before Cramer buys or sells the stocks? Learn more now.

Subscribe to our Youtube Channel for extended interviews, Cramer Replays, feature content, and more!

More from 401(k)

How to Really Diversify Your Retirement Portfolio

How to Really Diversify Your Retirement Portfolio

I'm Still Very Worried About My 401(k) in This Market (Part 2)

I'm Still Very Worried About My 401(k) in This Market (Part 2)

What to Do With Your Retirement Portfolio in This Volatile Market

What to Do With Your Retirement Portfolio in This Volatile Market

How the Tax Cuts and Jobs Act Affects Retirement Benefits

How the Tax Cuts and Jobs Act Affects Retirement Benefits

Bond Markets Prep for $230 Billion Wave as Rates Rise, Growth Questions Persist

Bond Markets Prep for $230 Billion Wave as Rates Rise, Growth Questions Persist