optimize mvc configuration