There is no workaround. When you load price data, it must be stored at some place, and that's the computer memory. For reducing the data, you can either use a shorter simulation period, or split the portfolio into groups of assets that you test separately.