Move constants and things around a bit to avoid creating huge buffers all the time