ALCache: made a small code refactoring