An apparatus, system, and method are provided for sharing a cached
security profile in a database environment. The apparatus, system, and
method include a cache module for caching a security profile accessible
to primary tasks and secondary tasks. An identification module is
provided that distinguishes between primary tasks authorized to refresh
the security profile and secondary tasks. A refresh module cooperates
with the cache module and identification module to selectively refresh
the security profile in response to a refresh request and expiration of
the security profile such that an old version of the security profile is
retained for use by secondary tasks until an execution window closes.