[Reverse-engineering] Slot-based PI file loading and freeing