optimize the query used on individual gene category page