another small optimization for Compose