Incorporated Jonnylatte's optimisation: Unrolled hash string to hex loop