Precompile regexps and translation tables