cache the type of surgery at the right time