adds caching to parties retrieval