matrix cache working