Fix n+1 issue in looks api endpoint