add precompiled template save

now the templates will be cahced in it`s precompiled state
and the promise will be removed if precompiled available