remove redundant field in ClMemory class