This should fix the 'request URI too large' issue with the apply button when editing templates.