Function archive optimization