Can be done, but in that case we need to initialize temp_buf and sca to NULL.