FIX: correct handling of replica cache for transformations with many

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 v6r12, there is another PR for v6r11 in order not to have conflicts with Federico's changes