Added caching which is aware of sqlrefs