Add implementations for cached matrices.