Functions that check for and cache inverse Matrix results