reduce gems to only the most critical ones