Write custom hex to decimal converted instead of using Integer.parseInt, it seems it's a little faster