CLIO-12778: refactored to check expires_at as well as invalidated_at timestamp