Shaving down there

Is there any way to prevent shaving bumps down there?? I never get shaving bumps on my legs or armpits but I always get them shaving my vagina and they basically just look like pimples and I hate them, I’m guessing it’s because the sweat and heat get to your open pores after shaving but is there any way to get rid/ prevent it ??