Use flags in stead of null-check for readiness of span cache