public static function getCached($filename, $environment = null) {
        $environment = $environment ?: APPLICATION_ENV;
        $cache = Zend_Registry::get('CacheFrontend');
        $key = preg_replace('/[^0-9a-zA-Z_]/', '_', basename($filename));
        $key .= '_' . $environment;

        // Check the store first to see if the ini file is already loaded within this session
        if (array_key_exists($key, static::$_store)) {
            return static::$_store[$key];
        }

        $config = $cache->load('Ini_Config_' . $key);
        if (!$config) {
            $config = new Garp_Config_Ini($filename, $environment);
            $cache->save($config, 'Ini_Config_' . $key);
        }
        static::$_store[$key] = $config;
        return $config;
    }