[BUGFIX] Do not recalculate PIDs for every query in BE search