commit: Fix performance regression in refactored syntax cache setup.