Dynamically changing trail length?

I have thousands of moving entities described in CZML, and everything is working great. What I’d like to be able to do is dynamically change the trailTime of those thousands of entities on the fly. Is there an efficient way to iterate over them and update the trailTime on the fly?

Thanks!