Added Complete Matrix Cache Function