While I work remotely I will try to make savings of at least 300.000 USD in the next few years. These savings will be, for the most part, be invested in index-funds. An average profit of 7% per year should be more than enough to cover our lives expenses. In reality we should be able to live while spending much less, so the index-funds should still increase in value year-on-year.
So in some way I hope to 'retire' before I reach my 40 years of age. So there will be little concern if I will stay employable. At the same time I hope that from then on I can focus on my own projects, just for fun and hopefully some profit.