Only truncate history if needed.