perf: reduce terminal index path work (#1289)