Optimized filtering duplicate timelines.