Add caching of quotient graph