Optimization on rankings generation.