Use short instead of int in cache