Code segments should only be loaded into memory when they are used, in addition to caching recently used code segments in memory.