Optimizing  notification request performance 

In case of a large number of user, no need to check in every insert operation  if the device idenfiers array has duplicates entries because it causes memory issue.
Just check it only when we try to retrieve the list of identifier
  public function getGCMIdentifiers()
    {
        return array_unique($this->allIdentifiers);
    }