Refactoring the certificate list to reduce astronomically slow rendering due to multiple calculations of 'attained_level'