Enhanced performance of getInverse() method