Trying to improve profile optimization -- not working well!