centralise caching limit