Fix performance regression for: Fix bug with ALLOW_LITERALS=NONE, where the periodic analyze table on insert would throw an exception.