Further perf improvements to the mobile version.