[BZ-1050006] avoid to use mvel dynamic optimization
(cherry picked from commit ca2611be9b35f9690aaccd1887563f51482b0328)