Helper module to handel session based caching