Tweaks to sql cache and benchmark