unicorn optimiziation