optimized Promises impl