Page form field choices - performance improvement

Having a cms project with CMS_MODERATOR on False, one language and 12483 page titles in the database(all linked to draft pages), the following was executed:

python -m timeit -v -n 1 -r 20 -s "from cms.forms.utils import update_site_and_page_choices; from django.core.cache import cache; cache.clear()" "update_site_and_page_choices('en')"

Results before these changes:
raw times: 3.18 2.74 2.85 3.59 3.27 3.32 3.71 3.31 2.85 2.74 2.77 2.79 2.78 2.96 2.78 2.81 2.78 3.04 2.94 2.96
1 loops, best of 20: 2.74 sec per loop

Results after these changes:
raw times: 0.681 0.597 0.675 0.589 0.579 0.597 0.589 0.573 0.606 0.584 0.594 0.579 0.58 0.595 0.596 0.625 0.62 0.64 0.666 0.601
1 loops, best of 20: 573 msec per loop