Streamlined HP.indexOf (optimized for dynamic platforms)