public synchronized Object getElementAt(int index) {
   return (cache.toArray())[index];
 }