This is the code that is generated by FFC.
You can try set some ffc related parameters. Try them in random order and see what makes the most difference.
parameters["form_compiler"]["cpp_optimize"] = True
parameters["form_compiler"]["optimize"] = True
parameters["form_compiler"]["cpp_optimize_flags"] = "-O3 --fast-math" if you_dare else "-O3"
parameters["form_compiler"]["quadrature_degree"] = 2
If you have uflacs installed you can also try:
parameters["form_compiler"]["representation"] = "uflacs"