performance improvements for internal values