msgId2MsgData map changed to ConcurrentHashMap and getMetaDataList chang...

...ed to get batch records 1000 wise
Shall we add comment what we are doing here and why we do it?