avoid calling isTemplate for every instance created

R=arv
BUG=

Review URL: https://codereview.appspot.com/13235049