Added different levels of caching to resultsets to be able to lose scope.