faster version (less copying) for serializable parallel_for