Sphinx optimization.