Allocate buffer so it's properly aligned