One of the green notifications I get during my backtest is:

'Data for symbol XYZ has been limited due to numerical precision issues in the factor file. The starting date has been set to 11/4/2008.'

Now, looking ahead I want like 10 years of history or whatever and sometimes an asset will have a starting date of like 2013.  In which case the backtest today in 2021 will only pull 8 years.  But if this algorithm is doing well and 2023 comes around I still want the previous 10 years.  So is there a dynamic way to pull the maximum amount of history so I can use a max() function to pull 10 years or the max amount of years available?

All of this is irrelevant if the current feature where the starting date gets automatically set is memory effecient.  If its already stable and doesn't cost much then I don't need to fix what isn't broken.  I just want to start trimming ineffeciencies where I can.