you are compiling template on each render call. It should be comliled only once instand of #user or in initiaalizer

for example