If the undergravel filter plate is pretty well hidden from view, you could just turn it off, remove the lift tubes and let the plate under the substrate. You would have an air pocket under the sand and wouldn't benefit from the denitrifying bacteria that grow in a deep sand bed but I don't have a
DSB in my 20 gallon and my nitrates are always zero. That's just one solution.