Part of #118145. Prior to this commit, for each node that a brush step affected, we would look up the `.sculpt_mask` and `.hide_vert` attributes. To avoid this overhead, this commit creates a helper struct to hold commonly used attributes and reduces the frequency that they are accessed. Pull Request: https://projects.blender.org/blender/blender/pulls/128286