Implemented caching for polytope solvers.