Added support for caching tableinfo so that we dont call the pragma table too many times.