crypto: api - Use data directly in completion function