Minor code runtime optimization