Compute authorization ID earlier to improve logging