cache inv matrix