added cache for gems