Added result type to caching to fix issues where we could not reliably detect column types