speed optimization

Cache isQuotedType function once per table instead of every row.
Special thanks to mlocati!