he had learnt the golem-incantation in the last book of salamonellus off by heart , and had cunningly taken the book back to the library earlier that day to give himself a chance of performing the rite while his master was otherwise engaged .