added cache manager to class and used it to save metadata lookup