Prepare for hash pre-caculation