Use store.all instead of manual flattening.