Speed up variable freshening

This code looks up the first available index instead.