Conditional index creation.