Optimized the DocumentCollection