Add collapse properties for faster compile time.

Simple performance improvement for the examples