Cut down gridstream memory usage by using namedtuples instead of dicts