My go-to accuracy loads in .40S&W with both jacketed and cast boolits are:
Winchester SuperField, aka WSF;
6.3gr w/155gr 1,050fps
5.5gr w/180gr. 900fps
I've used a LOT of 4.0gr Bullseye and 180gr TC cast (800fps)in my Glocks (two dept issued guns, 1st turned in with transfer/promotion. Second kept when I retired- has badge# for ser.#). Shoots as good as a Glock will shoot with anything. Bullet MUST be HARD! No swaged lead bullets such as Federal and MasterCart/GeorgiaArms offered back in the '90's, hence the prohibition of "lead" bullets in the Glocks.
However, my S&W M&P "Shield" with 3" bbl will "shoot the pants off" of ANY Glock I've ever shot (numerous!)
It prefers the 6.3gr load of WSF and the Lee .401-145 SWC, which casts to 155gr. It will hold the X-ring on a B-27 target at 25yds if I do my part. I've seen 2"-6shot groups with it from bench. The RO and young DNR officer watching me shoot it were astonished, ME TOO! I've have/had PPC match revolvers that didn't shoot much better.... How did they (S&W) do it??? It aint really anything that special in fit/finish... Nothing like my Perf.Ctr guns... but it really is an over-achiever!