spec optimizations