Reduce $key since it decides filename length