Caching the result of the 'relationship sniffing', this fixes issue #6