[v6r11] correct handling of replica caches when more than 5000 files

The replica cache was not handled properly when there were more files in the transformation than accepted to be executed: replicas of all other files were cleared.
This PR fixes the problem and sets logging levels at the required level for proper debugging.
It also doesn't require to get replicas for RemoveFile transformations (very useful when removing 100,000's files!)
This PR is solely for v6r11, there is another PR for v6r12 in order not to have conflicts with Federico's changes