I don't know how a sand bed can harbour nitrates. Do you mean make nitrates? Store nitrates? I am confused.
What is the no3 level in the tank?
As for denitrification, this is somewhat of a complex topic. I have found 2 inches of sand can take tank no3 levels down to near zero - not zero, but close. 3 inches works really well. This is not growth limiting to anything in my experience. However, if the sandbed is very old, then it could be full of inert gunk that can keep water from getting to the lower areas and not work as well. This gunk does not release nitrates or phosphates or anything, it is just in the way. Starting on about year 4, I vacuum about 20-25% of my sandbed every 3 months to get that gunk out. The three month spacing allows the oxic and anoxic zones to establish again and for the micro/pico fauna to repopulate the areas.