Added aggressive optimization to remove subdirs not related to date range