cosmo_derived optimizations, including cyquad util