optimize party repository