DNN-20052 RazorScriptFile - optimization