prevent n+1 query on variant lookup