improve decode performance