Pre-compute freq lookup tables and align memory