Compression of grouped functions to reduce amount of files