fixing problems with data structure of cached objects at elastic search