Cache matrix functions commit