Use raw file handles
Use new Base functions
Stop converting maps to lists before sending