Excel export: minor optimization.