The Open/Read/GetInfo/Close sequence you implement here is precisely how GRUB2 and systemd-boot read `vmlinuz` and `initrd` off the FAT32-formatted EFI System Partition before the Linux kernel's own filesystem drivers exist. This is also the exact protocol Microsoft's bootmgfw.efi uses to load Windows' boot configuration data, making it one of the most-executed code paths in modern PC boot.