Optimize category index