minor fix, memoizing only spa related templates