speedup parsing and grammar loading