Reduced buffer length for trace hooks