Use a lookup table instead of a function for boolean keyword captures