some sands wil compact over time i think play sand dose a little not much but trapping anything not herd of that tbh, unless you bury something under the sand when you put it in it should be alright and like you said bottom dwellers will disturb the sand making the top layer not as compact, pool filter sand is another good one, i prefer the more expensive sand its like very very small gravel pieces like 1mm so it still safe for cory's and stuff
just when you put sand in just be careful do it in stages or if you can empty the tank out if you have a spare or a large enough bucket to put the fish in for 30 mins while you do this