solution to razor.parse performance issue