Optimization in ReadCosmosLogBase.m