cache inversed matrix