D2 has the lowest machinability rating of any steel I commonly work with. 35% of W1. Feh. It comes spheroid annealed, but it is still hard on cutters. I do all my grinding before HT. That is the beauty of an air quench steel, little danger of warping. Protect the blade from oxygen and all you have to do is remove a little heat coloring. I used to use argon, but now I use foil. After HT, I just tumble and use a sctochbrite belt.
I heat treated some last weekend where I ground one down to under a .010 edge. It was .025" almost 1/4" back from the edge. Fortunately no problems. YMMV. I did pull it out of the plates at about 8 seconds and nudged the tip over a hair. It only takes the smallest little nudge with your thumb while still hot.
D2 is designed to retain austenite after quench to minimize warping and dimensional changes (it is a die steel). For maximum performance on a small thin blade you may want to convert some of that retained austenite to martensite with a deep freeze (liquid nitrogen or dry ice and acetone). You will reduce risk of cracking (has never ever happened to me in D2) and warping (happens) with a snap temper at 300 for 20 min before your freeze. In my experience this may reduce the effectiveness of your cold treatment and cost you an RC point, but that may be a good trade off for you. I plan to go back to no snap temper.
My "formula" is preheat at 1400 for half a beer, run up to 1850 and soak at temp for 40 min. Yes, 30 minutes almost certainly works, but there will be no increase in grain size over 10 min in this steel and some of those carbides are pretty large, best to give them a chance to melt as much as they're gonna. I plate quench in the foil. I pull them out and look for kinks before they "set up". They cool off, then go into water, then into dry ice and acetone for 2 hours. I then temper twice for two hours at 450 for a target hardness of around 61-62.
The rapid quench (compared to air), in theory, gives you a point in RC hardness, and may help keep some of the chrome free for better corrosion resistance. This is based upon what I've read. They say that the rapid quench keeps more carbon in the martensite. During temper the carbon comes out of the martensite and forms fine secondary carbides with whatever is close by, including iron, not just the chromium. Might leave more free chromium. I don't know.
Keep in mind, if grinding after HT, that D2 does not run colors at the regular temps. You can botch your temper and never know it...