Simplification of byte array generation