Made unpack.header unpack to /tmp and optimized gl function load order to keep size in 1024.