Dynamic index mask and dry-run