Just set icarus_drv.job_prepare = icarus_job_prepare instead of checking this every scanhash