advanced compute_map to fasten multiple K evalutaions