[4855] Added decorators for caching data and locking function.