To speed up memorization of some text it is helpful to reduce it to first letters only. Give it a try. E.g.: Yaṁ kiñci samudayadhammaṁ sabbaṁ taṁ nirodhadhamman. Will become: Y k s s t n.