Add in Trace Cache emptier

Prevent saving empty cache structures if there is no data in the trace cache