Implement `Cacheable Matrix` type