Major changes to use php-defined key code translations instead of db lookups for a vast performance improvement.