Introduce lib.cache.php
use new cache key
include cache class
switch up to $dms_cache functions