got rid of unecessary template str memoization