NXP-10824 simplify writing resources to filesystem