Avoid checking submodules for trivial operation (major speedup)