Eliminate a redundant loop across each traceback