Enabled caching of the grammer to avoid pathological cases