DNN-6123: use file API to load files.