[libsocialcache] Avoid recreating delegates on model updates.
[libsocialcache] Cache prepared queries.