Use $id rather than $key to try to fix cache problems.