split ssdeep_engine_step to smaller functions