util: patch_eval

make eval faster