small optimizations for shadowcopy2 module