Energy storage system airflow optimization solution