Optimized set() speed for small values (up to 1Kb)