Optimized pushdata function