You should memorize the shapes. You shouldn't need to think about anything when playing these chords. One method to build familiarity is to pick a particular chord and play it, then play the first inversion, then the second, the third, and back to root (an octave higher). Then come back down.
How do you memorize piano chords quickly?
An easy way to remember what notes are in a major triad in any key, is to simply start at the root, then go up four ½ steps to the next note in the chord, then go up just three ½ steps to find the 3rd and final note in the chord. This is true for all key signatures.