Redid object caching for performance improvement
Redid bit-switch function for increased perf