Use --switch=2 --readonly-tables gperf options

The --switch option saves about one megabyte of code (or data), and the
--readonly-tables seems like a good idea in general.

Change-Id: I19419e2cb9bb76dea4547512572b689883c41d8d