FIX: Validations to be thread-safe and shared between all DB providers.

Fix for cloned databases.
FIX: Cache directive in ESP packs to cache only static content client side.