Templates should only be compiled once