Replaced set + expire with atomic setex.