Ensure $row is an array.
Cache the RI results for at least an hour.

No need to check favouriteRecipients THAT frequently.