Generate only the minimum required amount of bytes