some optimizations in descriptor creation