modest speedup in datcube_simulate