Turn eval script into regular code so optimizer doesn't break it

@davideaster and @stevencarr, would you mind reviewing?