Send spark_mem to the template.