Cache matrix code

Minor changes to the message