I've been doing that for a few years now and I'm at ~1.6M all liquid and on track to retire before I'm 40 (32 now) and I'm a standard software engineer working in infra. I wish I would have known that earlier instead of completely wasting my time working as a startup employee for pennies, but I also had immigration issues (H1B visa) that prevented me from freely navigating the job market (or at least that's what I like to tell myself as a poor excuse for not taking more control of my future sooner...).
If you want to reduce those ~5 years, you can start putting your money in speculative bets (e.g. crypto, leveraged etf, option trading), but that's not my cup of tea, I am way too aware of how much easier it is to go from $1M to $0 than from $0 to $1M.
The biggest advice I have for you is: if you're interested in seeing financial returns on your time/work, don't work for a startup, ever :-)