List optimizations and optimization safety checks