GRAILS-10772: Improve BeforeValidateHelper performance