Sped up backtesting by using linecache instead of pd.iloc