Cache SqlGrammar

There's no reason to recompute the SqlGrammar's regex.