matrix cache computation