Update optimizely to use async code.