Refactor the connection loading of traces, to not reload every time.