improve hash speed