Feature/opt require

Prevent the 'require' each time a hash is calculated.