Caches templates for #757 Buddy System Improvs.

#757