Memoize the maximum access level for the author of notes
Cache the maximum access level for each user in a map in the controller
In #19273 (closed), we saw that retrieving ProjectTeam#human_max_access for each note takes the bulk of the time when rendering certain issues or merge requests. We observe that most of the comments in an issue are typically done by the same users. This MR memoizes the max access level by user ID.