optimize the strategy for refactoring InputSplits