if concerned about heat, you should make sure that the wire is rated THHN or MTW rated (good for 200deg +) and a fiberglass pencil is good for cleaning copper contacts without chemicals or harsh abrasives (transformer wire windings)
EDIT: if a train transformer is near or above 175~200 there is a problem