Planning of Fast and Secure Paths in Complex Configuration Spaces Using Simple Primitives