make constants for these heuristic values too? (64 * 1024) and maybe 2