Moved the delete of the migration tempfile out of the loop - I literally have no idea why that avoids the 60sec lag