caching relationship data