Add support for subscription caching - avoid database hit on all notifications, if configured.