NXP-11399 Optimize when the same file is stored several times