I have a google apps script which fetches data from spreadsheet. The data is fetched pretty slowly, I think because of amount of data. The first call of this function takes till a second:
sheet.getRange(row, coll).getValue()
I think there must be away to create global variables which will be available all the time the spreadsheet is opened. I would store the whole spreadsheet on open and access it, which should be much faster. But I could not find this option.