conserve memory by writing stop_times data directly to file