First cut at accelerated formula parsing - saves 29s of 131s for my file.

Change-Id: I48b613eb7131d6eb3902695aa30a1aa1a9ea5f6a