Use scoped to avoid sql query execution