[PDT-5578] Make page sizes longs everywhere, fix issue with executor