first optimization attempts (a base analysis now takes more than 30 mins)