yay optimizations