minor perf improvement related to coping files