use matrix cache in CSV matrix export; adopted simulation example