Added logging for slow beforemarshal calls.