Moved intialisation of the global/local buffer packing sizes to clean up code a bit