Some utils for performance critical situations