```php
static $cryptos = false;
if ($cryptos === false) {
    if(defined('CRYPT_MCRYPT') && class_exists('CryptoMcrypt'))
        $cryptos[CRYPT_MCRYPT] = new CryptoMcrypt(CRYPT_MCRYPT);
    ...
}

return $cryptos;