When preferences are read before configured, won't throw NullpointerException.
Prevent cacheManager from being proxied for db transactions.