Do not loop over all shares unneccessarily