make dvec exection of crop threadsafe by creating a local copy