Cache array should always store integer values not string values