Avoid unnecessarily rewriting folder indexes.