change magic values to named constants in flexcache.h