I don't know if it's applicable here, but another solution would be to create a big file (around 5G in your case, ~524288 * 10 * 1024, which is +/- twice the maximum space you suggest), format it and mount it. Do your things with the small files in it, and once finished, you just need to delete 1 file... Or to quick format it.