Refactor and speed up realText formatter bootstrap

With English locale, bootstrap of realText passes from 5s to under 100ms