Optimized version of descriptors computation